﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EnrolQuit.aspx.cs" Inherits="EnrolQuit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--

function btnReset_onclick() {

}

// -->
</script>
</head>
<body background ="../../images/物资右侧背景.jpg"  style="font-size:9pt">
    <form id="form1" runat="server">
    <div>
        <div style="text-align: left">
            <table border="0" cellpadding="0" cellspacing="0" style="width: 640px; font-size: 9pt;">
                
                <tr>
                    <td style="width: 50px; height: 24px;">
                        退库单号</td>
                    <td style="width: 86px; height: 24px;">
                        <asp:TextBox ID="txtQuitID" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 21px; height: 24px;">
                    </td>
                    <td style="width: 55px; height: 24px;">
                        </td>
                    <td style="width: 125px; height: 24px;">
                        </td>
                    <td style="width: 19px; height: 24px;">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px; height: 21px;">
                        退库日期</td>
                    <td style="width: 86px; height: 21px;">
                        <asp:TextBox ID="txtQuitDate" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtQuitDate"
                            Display="Dynamic" ErrorMessage="*" Width="4px"></asp:RequiredFieldValidator></td>
                    <td style="width: 21px; height: 21px;">
                        <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtQuitDate" ErrorMessage="CustomValidator" OnServerValidate="CustomValidator1_ServerValidate" SetFocusOnError="True"></asp:CustomValidator></td>
                    <td style="width: 55px; height: 21px;">
                        供应商</td>
                    <td style="width: 125px; height: 21px;">
                        <asp:DropDownList ID="ddlCustomer" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged" AppendDataBoundItems="True">
                            <asp:ListItem>选择供应商</asp:ListItem>
                        </asp:DropDownList></td>
                    <td style="width: 19px; height: 21px;">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px">
                        退库类型</td>
                    <td style="width: 86px">
                        <asp:DropDownList ID="ddlType" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 21px">
                    </td>
                    <td style="width: 55px">
                        地 址</td>
                    <td style="width: 125px">
                        <asp:TextBox ID="txtAddress" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 19px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px">
                        存放仓库</td>
                    <td style="width: 86px">
                        <asp:DropDownList ID="ddlStorePlace" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 21px">
                    </td>
                    <td style="width: 55px">
                        电 话</td>
                    <td style="width: 125px">
                        <asp:TextBox ID="txtPhone" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 19px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px; height: 24px;">
                        经 办 人</td>
                    <td style="width: 86px; height: 24px;">
                        <asp:TextBox ID="txtOutMan" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtOutMan"
                            Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                    <td style="width: 21px; height: 24px">
                        </td>
                    <td style="width: 55px; height: 24px;">
                        联 系 人</td>
                    <td style="width: 125px; height: 24px;">
                        <asp:TextBox ID="txtLinkMan" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 19px; height: 24px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px; height: 24px">
                        退库部门</td>
                    <td style="width: 86px; height: 24px">
                        <asp:DropDownList ID="ddlDepartment" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 21px; height: 24px">
                    </td>
                    <td style="width: 55px; height: 24px">
                        应退货款</td>
                    <td style="width: 125px; height: 24px">
                        <asp:TextBox ID="txtQuitMoney" runat="server" Enabled="False"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtQuitMoney"
                            ErrorMessage="*"></asp:RequiredFieldValidator></td>
                    <td style="width: 19px; height: 24px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50px; height: 24px">
                        退 库 人</td>
                    <td style="width: 86px; height: 24px">
                        <asp:TextBox ID="txtQuitMan" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtQuitMan"
                            Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                    <td style="width: 21px; height: 24px">
                        </td>
                    <td style="width: 55px; height: 24px">
                        备 注</td>
                    <td style="width: 125px; height: 24px">
                        <asp:TextBox ID="txtRemark" runat="server" Height="20px" TextMode="MultiLine" Width="154px"></asp:TextBox></td>
                    <td style="width: 19px; height: 24px">
                    </td>
                </tr>
            </table>
            <table style="font-size: 9pt;" border="0" cellpadding="0" cellspacing="0" width="640">
                <tr>
                    <td style="width: 112px; height: 20px;">
                        物资编码</td>
                    <td style="width: 149px; text-align: left; height: 20px;">
                        <asp:LinkButton ID="lnkWzID" runat="server" OnClick="lnkButtonWzID_Click" CausesValidation="False">物资编码</asp:LinkButton></td>
                    <td style="width: 209px; height: 20px; text-align: left; color: #000000;">
                    </td>
                    <td style="width: 102px; color: #000000; height: 20px;">
                        库 存</td>
                    <td style="width: 149px; height: 20px;">
                        <asp:Label ID="labStorage" runat="server" Width="63px">0</asp:Label></td>
                    <td style="width: 100px; height: 20px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 112px; height: 24px;">
                        名 称</td>
                    <td style="width: 149px; height: 24px;">
                        <asp:TextBox ID="txtName" runat="server" Enabled="False"></asp:TextBox>
                        </td>
                    <td style="width: 209px; height: 24px;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtName"
                            Display="Dynamic" ErrorMessage="*" Width="14px"></asp:RequiredFieldValidator></td>
                    <td style="width: 102px; height: 24px;">
                        计量单位</td>
                    <td style="width: 149px; height: 24px;">
                        <asp:DropDownList ID="ddlUnit" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 100px; height: 24px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 112px; height: 19px;">
                        型 号</td>
                    <td style="width: 149px; height: 19px;">
                        <asp:TextBox ID="txtModel" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 209px; height: 19px;">
                    </td>
                    <td style="width: 102px; height: 19px;">
                        单 价</td>
                    <td style="width: 149px; height: 19px;" align="left">
                        <asp:TextBox ID="txtUnitPrise" runat="server" Width="147px"></asp:TextBox></td>
                    <td style="width: 100px; height: 19px;">
                    </td>
                </tr>
                <tr>
                    <td style="width: 112px; height: 23px;">
                        规 格</td>
                    <td style="width: 149px; height: 23px;">
                        <asp:TextBox ID="txtSpec" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 209px; height: 23px">
                    </td>
                    <td style="width: 102px; height: 23px;">
                        数 量</td>
                    <td style="width: 149px; height: 23px;">
                        <asp:TextBox ID="TxtAmount" runat="server" AutoPostBack="True" OnTextChanged="TxtAmount_TextChanged"></asp:TextBox></td>
                    <td style="width: 100px; height: 23px">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxtAmount"
                            Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 112px">
                        品 牌</td>
                    <td align="left" style="width: 149px">
                        <asp:TextBox ID="txtCard" runat="server" Enabled="False"></asp:TextBox></td>
                    <td align="left" style="width: 209px">
                    </td>
                    <td style="width: 102px">
                        合计金额</td>
                    <td style="width: 149px">
                        <asp:TextBox ID="txtGathering" runat="server" ></asp:TextBox></td>
                    <td style="width: 100px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 112px; height: 21px">
                        </td>
                    <td style="width: 149px; height: 21px">
                        </td>
                    <td style="width: 209px; height: 21px">
                    </td>
                    <td colspan="2" style="height: 21px; text-align: center;">
                        <asp:Button ID="btnClickOK" runat="server" OnClick="btnClickOK_Click" Text="登记" />
                        <input id="btnReset" type="reset" value="重置" language="javascript" onclick="return btnReset_onclick()" /></td>
                    <td colspan="1" style="height: 21px; text-align: center; width: 100px;">
                    </td>
                </tr>
            </table>
            <br />
            <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
                &nbsp;<table style="vertical-align: top; text-align: left; font-size: 9pt;" width="80%">
                    <tr>
                        <td rowspan="3" style="width: 90px">
                            <asp:TreeView ID="TreeView1" runat="server" ExpandDepth="0" ImageSet="WindowsHelp"
                                OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" EnableClientScript="False">
                                <ParentNodeStyle Font-Bold="False" />
                                <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                                <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                                    VerticalPadding="0px" />
                                <RootNodeStyle BorderStyle="None" />
                                <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                                    NodeSpacing="0px" VerticalPadding="1px" />
                            </asp:TreeView>
                        </td>
                        <td rowspan="2" style="width: 723px">
                            <asp:GridView ID="gvStatistic" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanging="gvStatistic_SelectedIndexChanging"
                                Width="536px" BorderColor="Black" BorderWidth="1px" CellSpacing="1">
                                <Columns>
                                    <asp:BoundField DataField="WzID" HeaderText="物资编号" />
                                    <asp:BoundField DataField="Name" HeaderText="名称" />
                                    <asp:BoundField DataField="Mode" HeaderText="型号" />
                                    <asp:BoundField DataField="Spec" HeaderText="规格" />
                                    <asp:BoundField DataField="Card" HeaderText="品牌" />
                                    <asp:BoundField DataField="UnitPrise" HeaderText="单价" />
                                    <asp:BoundField DataField="Unit" HeaderText="计量单位" />
                                    <asp:BoundField DataField="Type" HeaderText="固定资产" />
                                    <asp:CommandField HeaderText="选择" ShowSelectButton="True" />
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    
    </div>
    </form>
</body>
</html>
